package kr.hkit.powerjava.chapter06.assign_if;

public class Two {

	private char alph;
	
	public void setAlph(char alph) {
		this.alph = alph;
	}

	char change(){
		if(alph >= 'A' && alph < 'a')//대문자
		{
			alph = (char) (alph - 'A' + 'a');
		}
		
		else if(alph >= 'a' && alph <= 'z')
		{
			System.out.print("대문자를 입력하세요");
		}
		
		return alph;
	}

	@Override
	public String toString() {
		return "Two [alph=" + alph + ", change()="
				+ change() + "]";
	}
	
}
